package com.lyt.springboot.diffHandler;

import com.lyt.springboot.diffEnum.ActionMethodEnum;
import org.springframework.stereotype.Component;

@Component
public class ByCycleActionHandler implements ActionHandler {
    @Override
    public String actionMethod() {
        return ActionMethodEnum.CYCLE.getMethod();
    }

    @Override
    public Object handler() {
        System.out.println("自行车出行。。。");
        return ActionMethodEnum.CYCLE.getDesc();
    }
}
